import random #加载的模块
#给出0到10之间的随机整数
a = random.randint(0,10)
print(a)
#给出9到10之间的随机实数
a = random.uniform(9,10)
print(a)
#从9、19、29、39、……、99之间，随机选取一个实数
a = random.randrange(9, 100, 10)
print(a)
#从列表[5,6,7,8,9]里面，随机选取一个数
a = random.choice([5,6,7,8,9])
print(a)
# 从一个字符串里面，随机选取一个字符
a = random.choice("从一个字符串里面，随机选取一个字符！")
print(a)
#随机打乱列表里面的字符顺序
a = ["p","q","r","s","t","p","q","r","s","t","p","q","r","s","t"]
random.shuffle(a)
print(a)
#从列表里面随机选取9个数字
a = range(3,100,2)
b = random.sample(a, 9)
print(b)
